import { axios } from "../../utils/request";

const api = {
    priceList: "/crm/quotedPrice/page",
    save: "/crm/quotedPrice/save",
    disable: "/crm/quotedPrice/disable",
    enable: "/crm/quotedPrice/enable",
    deletePrice: "/crm/quotedPrice/delete"
};

/**
 * 列表
 */
export function priceList(parameter) {
  return axios({
    url: api.priceList,
    method: "get",
    params: parameter
  });
}

/**
 * 保存
 */
export function save(parameter) {
  return axios({
    url: api.save,
    method: "get",
    params: parameter
  });
}

/**
 * 停用
 */
export function disable(parameter) {
  return axios({
    url: api.disable,
    method: "get",
    params: parameter
  });
}

/**
 * 启用
 */
export function enable(parameter) {
  return axios({
    url: api.enable,
    method: "get",
    params: parameter
  });
}

/**
 * 删除
 */
export function deletePrice(parameter) {
  return axios({
    url: api.deletePrice,
    method: "get",
    params: parameter
  });
}